package com.yunpuvip.sachet.modular.constant.enumconstant;

/**
 * @ auther wushaohong
 * @ date  2019/8/11
 **/
public enum PaymentType {
    ORDER(1,"订单支付"),
    RECHARGE(2,"充值支付"),
    ;


    private Integer status;
    private String msg;

    PaymentType(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "OrderStatus{" +
                "status=" + status +
                ", msg='" + msg + '\'' +
                '}';
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public  static  String getPaymetnMsg(Integer code){
        switch ( code){
            case  1: return ORDER.getMsg();
            case  2:return RECHARGE.getMsg();
            default:return "未知支付类型";
        }

    }
}
